﻿<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="produittest.aspx.vb" Inherits="Fruiterie_Atwater.produittest" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:GridView ID="GridViewProduit" runat="server" Height="99px" Width="1032px" 
            AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" 
            BackColor="White" BorderColor="#DEDFDE" BorderStyle="None" BorderWidth="1px" 
            CellPadding="4" DataKeyNames="noProduit" DataSourceID="LinqDataSource1" 
            ForeColor="Black" GridLines="Vertical" PageSize="1">
            <AlternatingRowStyle BackColor="White" />
            <Columns>
                <asp:CommandField ShowDeleteButton="True" ShowEditButton="True" ShowInsertButton="true" 
                    ShowSelectButton="True" />
                <asp:BoundField DataField="noProduit" HeaderText="noProduit" ReadOnly="True" 
                    SortExpression="noProduit" />
                <asp:BoundField DataField="description" HeaderText="description" 
                    SortExpression="description" />
                <asp:BoundField DataField="prixCoutant" HeaderText="prixCoutant" 
                    SortExpression="prixCoutant" />
                <asp:BoundField DataField="prixVendu" HeaderText="prixVendu" 
                    SortExpression="prixVendu" />
                <asp:BoundField DataField="qteProduit" HeaderText="qteProduit" 
                    SortExpression="qteProduit" />
                <%--<asp:BoundField DataField="noCategorie" HeaderText="noCategorie" 
                    SortExpression="noCategorie" />--%>
                <asp:TemplateField SortExpression="category.description" headertext="Categorie">
                        <ItemTemplate>
                            <%# Eval("category.description")%>
                        </ItemTemplate>
                        
                 </asp:TemplateField>
            </Columns>
            <FooterStyle BackColor="#CCCC99" />
            <HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" />
            <RowStyle BackColor="#F7F7DE" />
            <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
            <SortedAscendingCellStyle BackColor="#FBFBF2" />
            <SortedAscendingHeaderStyle BackColor="#848384" />
            <SortedDescendingCellStyle BackColor="#EAEAD3" />
            <SortedDescendingHeaderStyle BackColor="#575357" />
            
        </asp:GridView>
    
    </div>
    <asp:LinqDataSource ID="LinqDataSource1" runat="server" 
        ContextTypeName="Fruiterie_Atwater.dbEpicerieDataContext" EnableDelete="True" 
        EnableInsert="True" EnableUpdate="True" EntityTypeName="" OrderBy="description" 
        TableName="produits">
        
    </asp:LinqDataSource>
    </form>
</body>
</html>
